package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import cn.hutool.core.annotation.Alias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.example.springboot.common.LDTConfig;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 
* </p>
*
* @author ikun
* @since 2023-05-30
*/
@Getter
@Setter
@ApiModel(value = "Orders对象", description = "")
public class Orders implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 订单编号
    @ApiModelProperty("订单编号")
    @Alias("订单编号")
    private String orderNo;

    // 订单总金额
    @ApiModelProperty("订单总金额")
    @Alias("订单总金额")
    private BigDecimal total;

    // 订单状态
    @ApiModelProperty("订单状态")
    @Alias("订单状态")
    private String status;

    // 下单人ID
    @ApiModelProperty("下单人ID")
    @Alias("下单人ID")
    private Integer userId;

    // 支付流水号
    @ApiModelProperty("支付流水号")
    @Alias("支付流水号")
    private String payNo;

    // 实付金额
    @ApiModelProperty("实付金额")
    @Alias("实付金额")
    private BigDecimal pay;

    // 下单时间
    @ApiModelProperty("下单时间")
    @Alias("下单时间")
    private String time;
    
    private Integer addressId;
}
